Spring Boot Kotlin API
Toggle table of contents
4.0.0-SNAPSHOT
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
Spring Boot Kotlin API
Spring Boot Kotlin API
/
org.springframework.boot.docs.web.servlet.springmvc
/
[jvm]MyRestController
My
Rest
Controller
@
RestController
@
RequestMapping
(
value
=
"/users"
)
open
class
MyRestController
Members
Constructors
My
Rest
Controller
Link copied to clipboard
constructor
(
userRepository
:
UserRepository
,
customerRepository
:
CustomerRepository
)
Functions
delete
User
Link copied to clipboard
@
DeleteMapping
(
value
=
"/{userId}"
)
open
fun
deleteUser
(
@
PathVariable
userId
:
Long
)
get
User
Link copied to clipboard
@
GetMapping
(
value
=
"/{userId}"
)
open
fun
getUser
(
@
PathVariable
userId
:
Long
)
:
User
get
User
Customers
Link copied to clipboard
@
GetMapping
(
value
=
"/{userId}/customers"
)
open
fun
getUserCustomers
(
@
PathVariable
userId
:
Long
)
:
List
<
Customer
>